/*
 * @Descripttion: 会员套餐列表配置
 * @version: 电子名片2.0
 * @Author: 冯健
 * @Date: 2020-11-24 10:41:12
 * @LastEditors: 冯健
 * @LastEditTime: 2020-12-09 17:54:45
 */
export const listHedar = [
  { label: '会员套餐编号', prop: 'mealId' },
  { label: '会员套餐名称', prop: 'mealName' },
  { label: '会员等级', prop: 'levelName' },
  { label: '有效时间（月）', prop: 'monthCount' },
  { label: '金额（元）', prop: 'mealPrice' },
  { label: '状态', prop: 'status', isTemplate: true },
  { label: '修改人', prop: 'modifierName' },
  { label: '修改时间', prop: 'gmtModified' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]
const levelList = []
const stutas = [
  { value: '0', title: '未启用' },
  { value: '1', title: '已启用' },
  { value: '2', title: '已停用' }
]
export const searchs = [
  { type: 'input', key: 'mealName', value: '', placeholder: '会员套餐名称' },
  { type: 'select', key: 'levelId', value: '', selectList: levelList, placeholder: '会员等级' },
  { type: 'select', key: 'status', value: '', selectList: stutas, placeholder: '状态' }
]

export const editList = [
  { type: 'input', key: 'mealName', label: '会员套餐名称', placeholder: '请输入' },
  {
    type: 'select',
    key: 'levelId',
    label: '会员等级',
    placeholder: '请选择',
    options: []
  },
  { type: 'input', key: 'monthCount', label: '有效时间(月)', placeholder: '请输入' },
  { type: 'input', key: 'mealPrice', label: '金额(元)', placeholder: '请输入' }
]

export const rules = {
  mealName: { required: true, message: '请输入会员套餐名称' },
  levelId: { required: true, message: '请选择会员等级' },
  monthCount: { required: true, message: '请输入有效时间' },
  mealPrice: { required: true, message: '请输入金额' }
}

